package com.lnint.jess.generator.entity;

import javax.persistence.*;
import javax.validation.constraints.NotNull;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;

import com.lnint.jess.common.persistence.IdEntity;


/**
* <P>
* 级联字段信息
* </P>
* 
* @version 1.0
* @author 严娜 2015-03-24 09:30:00
* @since JDK 1.6
*/
@Entity
@Table(name="gen_scene_relate_column")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class GenSceneRelateColumn extends IdEntity<GenSceneRelateColumn>{
	private static final long serialVersionUID = 1478778L;
	private GenScene genScene;

	private String inverseJoincolumn;

	private String isSubtable;

	private String javaField;

	private String joincolumn;

	private String jointable;

	private String mappedby;

	private String relateEntity;

	private String relateOp;

	private String relateType;

	private String settings;

	private Integer sort;

	public GenSceneRelateColumn() {
		super();
	}
	public GenSceneRelateColumn(String id){
		super();
		this.id = id;
	}
	 @JoinColumn(name = "gen_scene_id")
	 @ManyToOne(fetch = FetchType.LAZY)
	 @NotFound(action = NotFoundAction.IGNORE)
	 @NotNull
	public GenScene getGenScene() {
		return genScene;
	}

	public void setGenScene(GenScene genScene) {
		this.genScene = genScene;
	}

	public String getInverseJoincolumn() {
		return this.inverseJoincolumn;
	}

	public void setInverseJoincolumn(String inverseJoincolumn) {
		this.inverseJoincolumn = inverseJoincolumn;
	}

	public String getIsSubtable() {
		return this.isSubtable;
	}

	public void setIsSubtable(String isSubtable) {
		this.isSubtable = isSubtable;
	}

	public String getJavaField() {
		return this.javaField;
	}

	public void setJavaField(String javaField) {
		this.javaField = javaField;
	}

	public String getJoincolumn() {
		return this.joincolumn;
	}

	public void setJoincolumn(String joincolumn) {
		this.joincolumn = joincolumn;
	}

	public String getJointable() {
		return this.jointable;
	}

	public void setJointable(String jointable) {
		this.jointable = jointable;
	}

	public String getMappedby() {
		return this.mappedby;
	}

	public void setMappedby(String mappedby) {
		this.mappedby = mappedby;
	}

	public String getRelateEntity() {
		return this.relateEntity;
	}

	public void setRelateEntity(String relateEntity) {
		this.relateEntity = relateEntity;
	}

	public String getRelateOp() {
		return this.relateOp;
	}

	public void setRelateOp(String relateOp) {
		this.relateOp = relateOp;
	}

	public String getRelateType() {
		return this.relateType;
	}

	public void setRelateType(String relateType) {
		this.relateType = relateType;
	}

	public String getSettings() {
		return this.settings;
	}

	public void setSettings(String settings) {
		this.settings = settings;
	}
	/**
	 * @return the sort
	 */
	public Integer getSort() {
		return sort;
	}
	/**
	 * @param sort the sort to set
	 */
	public void setSort(Integer sort) {
		this.sort = sort;
	}


}